<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="index.js"></script>
</head>
<body>

</body>
<script>
	// 抽离更改状态函数
	const p = new Promise(function (resolve, reject) {
		resolve(1);
		reject(2);
		throw "异常2"
	})
	console.log(p);
</script>
</html>